package org.shopCenter;

import java.util.Iterator;

public class CenterMenuB implements Iterator<String>, CenterMenu {
	String[] items;
	int position = 0;
	public CenterMenuB(String[] is) {
		this.items = is;
	}
	public boolean hasNext() {
		try {
			if (items[position] != null) {
				return true;
			}
			return false;
		} catch (Exception e) {
			return false;
		}
	}

	public String next() {
		return items[position++];
	}

	public void remove() {

	}

	public Iterator<String> getMenu() {
		return this;
	}

}
